package com.itheima.App;

import com.itheima.pojo.Teacher;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class appteacher {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("application-stu.xml");
        Teacher teacher = (Teacher) ca.getBean("Teacher");
        System.out.println(teacher.toString());
    }
}
